package com.xinzhidi.web.equipment.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xinzhidi.common.annotation.Excel;
import com.xinzhidi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;


/**
 * 存档恢复记录对象 equipment_archives_restore
 *
 * @author ruoyi
 * @date 2023-07-21
 */
@ApiModel(value = "存档恢复记录对象")
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("equipment_archives_restore")
public class EquipmentArchivesRestore extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "存档主键id")
    private Long archivesId;

    @ApiModelProperty(value = "存档类型1小区2楼栋3单元")
    @Excel(name = "存档类型1小区2楼栋3单元")
    private String type;

    @ApiModelProperty(value = "阀门开度")
    @Excel(name = "阀门开度")
    private BigDecimal valveOpen;

    @ApiModelProperty(value = "恢复状态")
    @Excel(name = "恢复状态")
    private String status;

    @ApiModelProperty(value = "小区id")
    @Excel(name = "小区id")
    private Long plotId;

    @ApiModelProperty(value = "楼栋id")
    @Excel(name = "楼栋id")
    private Long buildId;

    @ApiModelProperty(value = "单元id")
    @Excel(name = "单元id")
    private Long unitId;

    @ApiModelProperty(value = "存档时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "存档时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date archivesTime;

    @ApiModelProperty(value = "删除标志（0代表存在 1代表删除）")
    @TableLogic
    private String delFlag;

}
